#ifndef FORMTOOLBOXWIDGET_H
#define FORMTOOLBOXWIDGET_H

#include <QWidget>
class QListWidgetItem;
class QListWidget;
class QDate;
namespace Ui {
class FormToolBoxWidget;
}

class FormToolBoxWidget : public QWidget
{
    Q_OBJECT

signals:
    void AddBtnClicked(QString);

    void sig_currentItemChanged(QListWidgetItem*,QListWidgetItem*/*QListWidgetItem * current, QListWidgetItem * previous*/);
    void sig_reloadButton();
public:
    explicit FormToolBoxWidget(QWidget *parent = 0);
    ~FormToolBoxWidget();
    void setTitle(QString title,QString titleset);
    void setDataFormat(QString dataformat);

    void setCurrentItem(int index = 0);
    void addItem(QString str);
    void clear();
    QListWidget * getListWidget();

    bool getFillDataFlag(){return IsFillData;}

private:
    Ui::FormToolBoxWidget *ui;
    bool IsFillData;

    QString m_dataFormat;
protected:
};

#endif // FORMTOOLBOXWIDGET_H
